saveBackStack

open fun saveBackStack(@NonNull name: String)(source)

Save the back stack. While this functions similarly to popBackStack, it does not throw away the state of any fragments that were added through those transactions. Instead, the back stack that is saved by this method can later be restored with its state in tact.

This function is asynchronous -- it enqueues the request to pop, but the action will not be performed until the application returns to its event loop.

Parameters

name

The name set by addToBackStack.